import { createApp } from 'vue'
import './assets/iconfont/iconfont.css'
import '@/style/reset.scss'
import router from './router/index'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import '@/style/base.scss'
import App from './App.vue'
import GlobalComponents from '@/components'
import pinia from '@/store'
import './permission' // 引入路由鉴权文件

const app = createApp(App)

app.use(router)
app.use(ElementPlus, {
  locale: zhCn
})
app.use(pinia)
app.use(GlobalComponents)

app.mount('#app')
